common: make hypercall preemption checks consistent
authorJan Beulich <jbeulich@suse.com>
Thu, 13 Mar 2014 13:26:35 +0000 (14:26 +0100)
committerJan Beulich <jbeulich@suse.com>
Thu, 13 Mar 2014 13:26:35 +0000 (14:26 +0100)
commit8c0eed2cc8d8a2ccccdffe4c386b625b672dc12a
treecbe6e6e5212b17c9d52be09133d6f31ff35815af
parentbea8ee1a5ff2bbe04fcc6297db45fac178a5abc9
common: make hypercall preemption checks consistent

- never preempt on the first iteration (ensure forward progress)
- do cheap checks first

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Tim Deegan <tim@xen.org>
Acked-by: Keir Fraser <keir@xen.org>
xen/common/memory.c
xen/common/multicall.c
xen/drivers/char/console.c